package com.luozongyao.eduService.controller;

import com.luozongyao.commonutils.R;
import com.luozongyao.orderVo.UcenterMemberOrder;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @program: guli_parent
 * @description:
 * @author: Zongyao Luo
 * @create: 2021-08-08 15:41
 **/
@RestController
@RequestMapping("/eduService/user")
@CrossOrigin  //解决跨越
public class EduLoginController {

    @PostMapping("login")
    public R login(){
        return R.ok().data("token","admin");
    }

    @GetMapping("info")
    public R info(){
        return R.ok().data("roles","[admin]").data("name","admin").data("avatar","https://gss0.baidu.com/70cFfyinKgQFm2e88IuM_a/baike/pic/item/574e9258d109b3deb366bd7dc7bf6c81810a4ccd.jpg");
    }



}
